package com.lizonghui.googleplay.protocol;

import com.lizonghui.googleplay.base.BaseProtocol;
import com.lizonghui.googleplay.bean.HomeInfoBean;

/**
 * Created by Administrator on 2016/6/21.
 * 负责homeFragment的okHttp请求
 * 抽取homeFragment的网络请求,是的Fragment的结构不那么臃肿
 */
public class HomeProtocol extends BaseProtocol<HomeInfoBean>{

    /**
     * @param resultJsonString
     * @return
     * @des 解析网络返回的内容JsonString
     */
/*    @Override
    public HomeInfoBean parseJsonString(String resultJsonString) {
        Gson gson = new Gson();
        return gson.fromJson(resultJsonString,HomeInfoBean.class);

    }*/

    /**
     * @return
     * @des 返回协议关键字
     * @call 当子类需要用协议时候调用
     */
    @Override
    public String getInterfaceKey() {
        return "home";
    }
}
